package com.zjt.entity.product;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-24
 * Time: AM5:34
 * To change this template use File | Settings | File Templates.
 */

import com.zjt.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 *   防伪知识
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_knowledge")
public class Knowledge extends BaseEntity {
    private String categoryIdRef;//类别id ,防伪知识仅针对于类别数据；
    private String title;
    private String content;

    public String getCategoryIdRef() {
        return categoryIdRef;
    }

    public void setCategoryIdRef(String categoryIdRef) {
        this.categoryIdRef = categoryIdRef;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Knowledge{" +
                "categoryIdRef='" + categoryIdRef + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
